﻿using FluentScheduler;
using IcsSEMCtrl.Util.Client;
using Lifter.Device;

namespace TKT.Lifter.CIM.Lifter.FluentScheduler
{
    public class StatisticTimeJob : IJob
    {
        LifterSEM lifter = (LifterSEM)Naming.GetDeviceManager().GetLifter();
        public void Execute()
        {
            lifter.AddDataStatistics();
        }
    }
    public class ClearDataBasesFromJob : IJob
    {
        public void Execute()
        {
            SchedulerJobManage schedulerJobManage = SchedulerJobManage.getSchedulerJobManage();
            schedulerJobManage.ClearAlarmHistory();
            schedulerJobManage.ClearMaterialHistory();
            schedulerJobManage.ClearCommandHistory();
            schedulerJobManage.ClearPIOHistory();
            schedulerJobManage.ClearData();
            schedulerJobManage.ClearDataByDay();
        }
    }
}
